<div id='camara' align="center">
<script language="JavaScript">
	webcam.set_api_url('webcam/process_photo.php?prefijo=<?php echo $_GET['prefijo'] ?>');
    webcam.set_swf_url('webcam/webcam.swf');
    webcam.set_quality(100); // JPEG quality (1 - 100)
    webcam.set_shutter_sound(true); // play shutter click sound
    webcam.shutter_url = 'webcam/shutter.mp3';
	webcam.set_hook( 'onComplete', 'my_completion_handler' );
    //webcam.set_hook("onLoad", On_Load());
    //webcam.set_hook("onComplete", On_Complete());
    //webcam.set_hook("onError", On_Error());
	$('camara').update(webcam.get_html(320, 240));
	$('camara').innerHTML;
	
  </script>
</div>
<p align="center">
  <button onClick="javascript:camGrabar(); return false;" id='btnGrabar'>Capturar</button>
  <button onClick="camCancelar(); return false;" id='btnCancelar' style='display:none'>Otra Vez</button>
  <button onClick="camEnviar(); return false" id='btnEnviar' style='display:none'>Aceptar</button>
</p>

